﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class coin : MonoBehaviour {
	public int price = 1;
    // Use this for initialization
	void Start () {
		
	}
	public void onGet()
	{
		this.price = 0;
        GameObject.Find("AudioFxSpawn").GetComponent<AudioSource>().Play();
        GameObject.Destroy (this.gameObject);
	}
	// Update is called once per frame
	void Update () {
		
	}
}
